package com.bigdatan.b2c.controller.glass.enums;

/**
 * Created by shangdong on 17/5/14.
 */
public enum DotCountTypeEnum {
    Share_Count(1,"眼睛详情页分享次数打点"),
    Ads_Count(2,"广告位点击打点"),
    Wear_Glasses_Count(3,"眼睛被试戴次数打点"),
    Take_Pic_Count(4,"拍照按钮点击次数打点");

    private int typeID;
    private String desc;

    DotCountTypeEnum(int typeID, String desc) {
        this.typeID = typeID;
        this.desc = desc;
    }

    public int getTypeID() {
        return typeID;
    }

    public void setTypeID(int typeID) {
        this.typeID = typeID;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static DotCountTypeEnum getEnumByType(int typeID){
        for (DotCountTypeEnum dotCountTypeEnum : DotCountTypeEnum.values()) {
            if (dotCountTypeEnum.getTypeID() == typeID){
                return dotCountTypeEnum;
            }
        }
        return null;
    }
}
